package com.diy.sigmund.diycommon.spring.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 自定义公共配置项
 *
 * @author ylm-sigmund
 * @since 2021/8/18 9:47
 */
@Component
public class CustomCommonConfig {

    /** 加解密开关 */
    @Value("${custom.encrypt.enabled:false}")
    boolean encryptEnabled;

    public boolean isEncryptEnabled() {
        return encryptEnabled;
    }
}
